Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.5K
Views
Error .gitlab-ci.yml: "apk: comando no encontrado"

Tengo el siguiente archivo .gitlab-ci.yml :

 image: docker services: - docker:dind stages: - test - build - deploy test: stage: test before_script: - apk add --update -y python-pip - pip install docker-compose script: - echo "Testing the app" - docker-compose run app sh -c "python manage.py test && flake8" build: stage: build only: - develop - production - feature/deploy-debug-gitlab before_script: - apk add --update -y python-pip - pip install docker-compose script: - echo "Building the app" - docker-compose build deploy: stage: deploy only: - master - develop - feature/deploy - feature/deploy-debug-gitlab before_script: - apk add --update -y python-pip - pip install docker-compose script: - echo "Deploying the app" - docker-compose up -d environment: production when: manual

Cuando el corredor de Gitlab lo ejecuta, aparece el siguiente error:

 $ apk add --update -y python-pip bash: line 82: apk: command not found ERROR: Job failed: exit status 1

¿Cómo se supone que debo instalar apk? ¿O qué imagen aparte de la docker debo usar para ejecutar este archivo gitlab-ci.yml ?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Bueno, resulta que tenía dos corredores diferentes: uno marcado como "ejecutor de shell" (Ubuntu) y el otro marcado como "ejecutor de docker".

Este error se arrojó solo cuando el ejecutor de Ubuntu estaba enviando el trabajo, ya que Ubuntu no viene con apk.

Deshabilité el corredor de Ubuntu y resolví el problema.

over 4 years ago · Santiago Trujillo Report

0

La alternativa es configurar su instalación en el paso anterior a la prueba, como en este problema

 image: docker:latest services: - docker:dind before_script: - apk add --update python-pip
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!